home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / favloc-1.2-fx+tb.xpi / chrome / favloc.jar / content / favlocOptions.xul < prev    next >
Extensible Markup Language  |  2008-06-18  |  8KB  |  144 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  3. <!DOCTYPE window SYSTEM "chrome://favloc/locale/favloc.dtd" >
  4. <!-- ***** BEGIN LICENSE BLOCK *****
  5. - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  6. -
  7. - The contents of this file are subject to the Mozilla Public License Version
  8. - 1.1 (the "License"); you may not use this file except in compliance with
  9. - the License. You may obtain a copy of the License at
  10. - http://www.mozilla.org/MPL/
  11. -
  12. - Software distributed under the License is distributed on an "AS IS" basis,
  13. - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  14. - for the specific language governing rights and limitations under the
  15. - License.
  16. -
  17. - The Original Code is FavLoc
  18. -
  19. - The Initial Developer of the Original Code is Justin Scott.
  20. - Portions created by the Initial Developer are Copyright (C) 2006
  21. - the Initial Developer. All Rights Reserved.
  22. -
  23. - Contributor(s): (none)
  24. -
  25. - Alternatively, the contents of this file may be used under the terms of
  26. - either the GNU General Public License Version 2 or later (the "GPL"), or
  27. - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28. - in which case the provisions of the GPL or the LGPL are applicable instead
  29. - of those above. If you wish to allow use of your version of this file only
  30. - under the terms of either the GPL or the LGPL, and not to allow others to
  31. - use your version of this file under the terms of the MPL, indicate your
  32. - decision by deleting the provisions above and replace them with the notice
  33. - and other provisions required by the LGPL or the GPL. If you do not delete
  34. - the provisions above, a recipient may use your version of this file under
  35. - the terms of any one of the MPL, the GPL or the LGPL.
  36. -
  37. - ***** END LICENSE BLOCK ***** -->
  38.  
  39. <dialog xmlns:html="http://www.w3.org/1999/xhtml"
  40.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  41.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  42.         onload="FavLocOptions.init();"
  43.         buttons="accept,cancel"
  44.         ondialogaccept="return FavLocOptions.setOptions();"
  45.         title="&favloc.options-dialogtitle;">
  46.         
  47.     <script type="application/x-javascript" src="chrome://favloc/content/favlocOptions.js"/>
  48.  
  49.     <tabbox>
  50.         <tabs>
  51.             <tab label="&favloc.options-locations-tab;"/>
  52.             <tab label="&favloc.options-settings-tab;"/>
  53.         </tabs>
  54.         
  55.         <tabpanels>
  56.             <!-- Locations tab -->
  57.             <tabpanel>
  58.                 <vbox>
  59.                     <groupbox>
  60.                         <caption label="&favloc.options-favloccaption;"/>
  61.                         <vbox>
  62.                             <description>&favloc.options-listboxdescription;</description>
  63.                             <hbox align="center">
  64.                                 <listbox id="favorites" flex="1" disableKeyNavigation="true" onselect="FavLocOptions.enableControlButtons();">
  65.                                     <listhead>
  66.                                         <listheader label="&favloc.options-namelabel;"/>
  67.                                         <listheader label="&favloc.options-locationlabel;"/>
  68.                                     </listhead>
  69.                                     <listcols>
  70.                                         <listcol flex="1" size="40%"/>
  71.                                         <listcol flex="1"/>
  72.                                     </listcols>
  73.                                 </listbox>
  74.                                 
  75.                                 <vbox>
  76.                                     <button id="delloc" label="&favloc.options-deletebutton;" disabled="true" oncommand="FavLocOptions.deleteLoc();"/>
  77.                                     <button id="uploc" label="&favloc.options-moveupbutton;" disabled="true" oncommand="FavLocOptions.moveLocUp();"/>
  78.                                     <button id="downloc" label="&favloc.options-movedownbutton;" disabled="true" oncommand="FavLocOptions.moveLocDown();"/>
  79.                                 </vbox>
  80.                             </hbox>
  81.                         </vbox>
  82.                     </groupbox>
  83.                     
  84.                     <groupbox>
  85.                         <caption label="&favloc.options-addlocationcaption;"/>
  86.                         <hbox align="center"> 
  87.                             <label value="&favloc.options-namelabel;"/>
  88.                             <textbox id="name" pref="false" size="20"/>
  89.                             <label value="&favloc.options-locationlabel;"/>
  90.                             <textbox id="location" readonly="true" pref="false" size="50"/> 
  91.                             <button id="browse" label="&favloc.options-selectfolderbutton;" oncommand="FavLocOptions.openFilePicker();"/>
  92.                             <button id="addloc" label="&favloc.options-addbutton;" disabled="true" oncommand="FavLocOptions.addNewLoc();"/>
  93.                         </hbox>
  94.                     </groupbox>                    
  95.                 </vbox>
  96.             </tabpanel>
  97.             
  98.             <!-- Settings tab -->
  99.             <tabpanel>
  100.                 <vbox flex="5">
  101.                     <groupbox>
  102.                         <caption label="&favloc.options-menusettings;"/>
  103.                         <description>&favloc.options-whichmenus;</description>
  104.                         <hbox>
  105.                             <checkbox id="show-context-image" label="&favloc.options-showcontextimage;"/>
  106.                             <checkbox id="show-context-link" label="&favloc.options-showcontextlink;"/>
  107.                             <checkbox id="show-file" label="&favloc.options-showfile;"/>
  108.                             <checkbox id="show-download" label="&favloc.options-showdownload;"/>
  109.                         </hbox>
  110.                         <hbox>
  111.                             <checkbox id="show-context-attachment" label="&favloc.options-showcontextattachment;"/>
  112.                             <checkbox id="show-context-allattachments" label="&favloc.options-showcontextallattachments;"/>
  113.                             <checkbox id="show-context-allattachmentsbox" label="&favloc.options-showcontextallattachmentsbox;"/>
  114.                         </hbox>
  115.                     </groupbox>
  116.                     
  117.                     <groupbox>
  118.                         <caption label="&favloc.options-downloadsettings;"/>
  119.                         <checkbox id="automatically-select" label="&favloc.options-automaticallyselect;"/>
  120.                         <checkbox id="default-last-saved" label="&favloc.options-lastsaved;"/>
  121.                     </groupbox>
  122.                     
  123.                     <groupbox>
  124.                         <caption label="&favloc.options-overwritesettings;"/>
  125.                         <radiogroup id="overwrite">
  126.                             <caption label="&favloc.options-overwritecaption;"/>
  127.                             <radio id="overwrite-prompt" value="prompt" label="&favloc.options-overwriteprompt;" selected="true"/>
  128.                             <radio id="overwrite-overwrite" value="overwrite" label="&favloc.options-overwriteoverwrite;"/>
  129.                             <radio id="overwrite-unique" value="unique" label="&favloc.options-overwriteunique;"/>
  130.                             <radio id="overwrite-rename" value="rename" label="&favloc.options-overwriterename;"/>
  131.                         </radiogroup>
  132.                     </groupbox>
  133.                 </vbox>
  134.             </tabpanel>
  135.         </tabpanels>
  136.     </tabbox>
  137.     
  138.     <hbox>
  139.         <spacer flex="5"/>
  140.         <button label="&favloc.options-save;" dlgtype="accept"/>
  141.         <button dlgtype="cancel"/>
  142.     </hbox>
  143.     
  144. </dialog>